<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title></title>
		<link rel="stylesheet" href="/mobile/layui/css/layui.css" />
		<link rel="stylesheet" href="/mobile/css/mobile.css" />
		<script src="/mobile/js/jquery.min.js"></script>
		<script src="/mobile/layui/layui.js"></script>
		<style>
			.layui-form-radio{
				margin: 0;padding: 0;
			}
			.layui-form-radio:hover>*, .layui-form-radioed, .layui-form-radioed>i{
				color: #214194;
			}
			.layui-form-radio:hover>*, .layui-form-radioed, .layui-form-radioed>i{
				color: #214194;
			}
		</style>
	</head>
	<body>
		<div class="header">
			<h3 class="title">登录</h3>
		</div>
		<div class="flex_center">
			<div class="login_frm">
				<div class="logo"><img src="/mobile/img/logo.png" width="150"></div>
				<div class="title">橡塑装备</div>
				<div class="btn">
				  <button type="button" onclick="shouquan()" class="layui-btn layui-btn-fluid layui-btn-normal layui-btn-radius">授权并登录</button>
				</div>
				<div class="btn">
				  <button type="button" onclick="window.location.href='{:url("index/home")}'" class="layui-btn layui-btn-fluid layui-btn-primary layui-border layui-btn-radius">暂不授权</button>
				</div>
				<div class="btn">
					<div class="layui-form" style="display: inline-block; vertical-align: middle;">
					  <input type="radio" name="AAA" value="2" checked> 
					</div>请阅读并同意<a href="#">《中国橡塑装备服务条款》</a>
				</div>
			</div>	
		</div>
	</body>
	<script>
		function shouquan(){
			console.log('133');
			//window.open('https://www.baidu.com')
			url='https://open.weixin.qq.com/connect/oauth2/authorize?appid={$site.appid}&redirect_uri={$redirect_url}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect';
			window.open(url);
		}
	</script>
</html>